#!/usr/bin/env python

s = -3+4j
real = s.real
imag = s.imag
abs_val = pow(real**2 + imag**2, 0.5)
print(f"实部为：{real}")
print(f"虚部为：{imag}")
print(f"绝对值为：{abs_val}")
